package changeEmployeeTransaction.changeClassificationTransaction;

import schedule.PaymentSchedule;
import classification.PaymentClassification;
import addEmployeeTransaction.Employee;
import changeEmployeeTransaction.ChangeEmployeeTransaction;
import database.PayrollDatabase;

public abstract class ChangeClassificationTransaction extends
		ChangeEmployeeTransaction {

	public ChangeClassificationTransaction(int id, PayrollDatabase database) {
		super(id, database);
	}

	protected void change(Employee e) {
		e.setClassification(getClassification());
		e.setSchedule(getSchedule());
	}

	protected abstract PaymentClassification getClassification();

	protected abstract PaymentSchedule getSchedule();
}
